import { v4 } from 'uuid'


//获取菜单列表
export const get_menus = () => {
    return new Promise((resolve, reject) => {
        setTimeout(() => {
            resolve({
                code: 0,
                message: "ok",
                data: [
                    {
                        id: v4(),
                        name: "首页",
                        url: '/',
                        icon: "iconfont icon-shouye",
                        children: []
                    },
                    {
                        id: v4(),
                        name: "组织架构",
                        url: v4(),
                        icon: "iconfont icon-jurassic_project",
                        children: [
                            {
                                id: v4(),
                                name: "部门",
                                url: '/Org',
                                icon: "iconfont icon-bumen",
                                children: []
                            },
                            {
                                id: v4(),
                                name: "岗位",
                                url: '/Org/duty',
                                icon: "iconfont icon-gangwei",
                                children: []
                            }

                        ]
                    },
                    {
                        id: v4(),
                        name: "权限管理",
                        url: v4(),
                        icon: "iconfont icon-quanxianguanli",
                        children: [
                            {
                                id: v4(),
                                name: "主页",
                                url: '/Right',
                                icon: "iconfont icon-zhuye",
                                children: []
                            },
                            {
                                id: v4(),
                                name: "授权",
                                url: '/Right/give',
                                icon: "iconfont icon-shouquan",
                                children: []
                            },  {
                                id: v4(),
                                name: "配置",
                                url: '/Right/config',
                                icon: "iconfont icon-peizhi",
                                children: []
                            },

                        ]
                    }
                ]
            });
        }, 1000);
    });
}